Skip to content

Conversation

@lonvia
Copy link
Collaborator

@lonvia lonvia commented Sep 16, 2025

This adds new syntax options for expressing a geometry in the BDD tests:

[ <geometry>; ... ]

will mean that you expect a MULTI* geometry. The geometries need to be of the same type, obviously.

{ <geometry>; ... }

means to expect a GEOMETRYCOLLECTION. The inner geometries can be arbitrary simple types. No multi geometries, no collections.

This makes the tests involving multi geometries and collections considerably simpler. It incidentally also works around a bug with ST_GeometryN in PostGIS 3.6.0.

NB: also changes the CI to using pbf for tests as xml files are not offered anymore by Geofabrik.

Geofabrik doesn't see to have osm.bz2 files anymore.
@joto joto merged commit f7991ab into osm2pgsql-dev:master Sep 17, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants